﻿using System;

namespace KZ.Lottery.Entities
{
    public class RuleReport
    {
        public DateTime Date { get; set; }

        public string RuleID { get; set; }

        public string RuleName { get; set; }

        public string ChannelID { get; set; }

        public string ChannelName { get; set; }

        public decimal HeadCapital { get; set; }

        public decimal TailCapital { get; set; }

        public decimal Capital { get; set; }

        public decimal HeadActualCapital { get; set; }

        public decimal TailActualCapital { get; set; }

        public decimal ActualCapital { get; set; }

        public decimal HeadWinAmount { get; set; }

        public decimal TailWinAmount { get; set; }

        public decimal WinAmount { get; set; }

        public decimal Revenue { get; set; }

        public void SetCapital()
        {
            Capital = HeadCapital + TailCapital;
        }

        public void SetActualCapital()
        {
            ActualCapital = HeadActualCapital + TailActualCapital;
        }

        public void SetWinAmount()
        {
            WinAmount = HeadWinAmount + TailWinAmount;
        }

        public void SetRevenue()
        {
            Revenue = WinAmount - ActualCapital;
        }
    }

    public enum RuleReportColumns
    {
        Date,
        RuleID,
        RuleName,
        ChannelID,
        ChannelName,
        HeadCapital,
        TailCapital,
        HeadActualCapital,
        TailActualCapital,
        HeadWinAmount,
        TailWinAmount
    }
}